import React from 'react';
import { Switch, Route } from "react-router-dom";
import routeData from './data';

function IndexRoute() {
	return (
		<Switch>
			{routeData.map((item, index) => {
				return <Route
					key={index}
					path={item.path}
					exact={item.exact}
					render={item.render} />
			})}
		</Switch>
	)
}

export default IndexRoute;